package basic.courseLearn07;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.HashMap;
import java.util.HashSet;

//图
@Data
@AllArgsConstructor
public class Graph {
    public HashMap<Integer, Node> nodes; //节点集合
    public HashSet<Edge> edges; //边集合

    public Graph() {
        nodes = new HashMap<Integer, Node>();
        edges = new HashSet<Edge>();
    }

}
